package com.wy.panda.event.listener;

import com.wy.panda.event.TestApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 测试事件的监听器
 * 
 * @author wangyuan
 * @since 2020-11-12 23:12:28
 *
 */
@Component
public class TestApplicationListener implements ApplicationListener<TestApplicationEvent> {

    @Override
    public void onApplicationEvent(TestApplicationEvent event) {
        System.out.println("我执行了TestApplicationEvent的事件");
    }

}
